<!--
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-09-26 15:16:08
 * @LastEditTime : 2019-12-18 18:33:58
 * @LastEditors  : Please set LastEditors
 -->
<template>
  <div class="header">
    <van-uploader name="file" v-model="fileList" :after-read="afterRead" max-count="1"/>
  </div>
</template>
<script>
import api from "@/api/index.js";
export default {
  props: {

  },
  data(){
    return{
      fileList:[],
    }
  },
  methods:{
    afterRead(file) {
      // 此时可以自行将文件上传至服务器
      console.log("file",file);
      console.log("this.fileList",this.fileList);
    },
  }
}
</script>
<style scoped lang="less">

</style>
